from nodetypes.formats.srj.EventsTransform import EventsTransform
from nodetypes.formats.srj.Events import Document

from libsr import search

class SearchEventHandler(search.EventHandler):
    
    newDocument = Document


class EventsTransform(EventsTransform):
    
    defaultEvent = 'search'
    
    events = ({
        'search'        : (SearchEventHandler, None),
        }, 
    )
    
del search
del SearchEventHandler
del Document